package com.cn.ant.modules.wechat.dao;

import com.cn.ant.common.persistence.MyBatisRepository;
import com.cn.ant.modules.wechat.entity.WeiXinCustomItem;
import com.cn.ant.modules.wechat.entity.WeixinAccount;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 微信客户信息抽奖记录Mapper接口
 * @author AntDream
 * @version 2015-04-09
 */
@MyBatisRepository
public interface WeiXinCustomItemMapper{

    public int delete(String id);

    public int insert(WeiXinCustomItem record);

    public WeiXinCustomItem get(String id);

    public int update(WeiXinCustomItem record);

    public List<WeiXinCustomItem> queryByCustomId(@Param("customId") String customId);

    public List<WeiXinCustomItem> queryByOpenId(@Param("customId") String customId,@Param("openId") String openId);
}
